package com.zyw.auth.dao;

import com.zyw.auth.domain.Role;
import com.zyw.auth.model.RoleEditModel;
import com.zyw.kayla.infra.cache.mapper.BaseCrudMapper;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RoleDao extends BaseCrudMapper<Role> {


    /**
     * 根据主键查询角色（包括权限信息）
     *
     * @param roleId
     * @return
     */
    RoleEditModel findEditModel(Long roleId);


}
